package com.maybach.workflow.common.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

public class FlowDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * This field corresponds to the database column wf_flow.id
     */
    private Long id;

    /**
     * This field corresponds to the database column wf_flow.flow_name
     */
    private String flowName;

    /**
     * This field corresponds to the database column wf_flow.flow_state
     */
    private Integer flowState;

    /**
     * This field corresponds to the database column wf_flow.flow_version
     */
    private Integer flowVersion;

    /**
     * This field corresponds to the database column wf_flow.biz_id
     */
    private Long bizId;

    /**
     * This field corresponds to the database column wf_flow.biz_type
     */
    private String bizType;

    /**
     * This field corresponds to the database column wf_flow.parent_id
     */
    private Integer parentId;

    /**
     * This field corresponds to the database column wf_flow.attributes
     */
    private String attributes;

    /**
     * This field corresponds to the database column wf_flow.create_user_id
     */
    private Long createUserId;

    /**
     * This field corresponds to the database column wf_flow.gmt_create
     */
    private Date gmtCreate;

    /**
     * This field corresponds to the database column wf_flow.gmt_modified
     */
    private Date gmtModified;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFlowName() {
		return flowName;
	}

	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}

	public Integer getFlowState() {
		return flowState;
	}

	public void setFlowState(Integer flowState) {
		this.flowState = flowState;
	}

	public Integer getFlowVersion() {
		return flowVersion;
	}

	public void setFlowVersion(Integer flowVersion) {
		this.flowVersion = flowVersion;
	}

	public Long getBizId() {
		return bizId;
	}

	public void setBizId(Long bizId) {
		this.bizId = bizId;
	}

	public String getBizType() {
		return bizType;
	}

	public void setBizType(String bizType) {
		this.bizType = bizType;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}


    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}